#ifndef USERFORM_H
#define USERFORM_H

#include <QDialog>
#include "datebase.h"
#include <QPaintEvent>
#include <QPainter>
#include <QMessageBox>

namespace Ui {
    class UserForm;
}

class UserForm : public QDialog
{
    Q_OBJECT

public:
    explicit UserForm(datebase *db,int ID,QWidget *parent = 0);
    ~UserForm();
    void paintEvent(QPaintEvent *);
private:
    Ui::UserForm *ui;
    datebase *User_db;
    int User_ID;


private slots:
    void on_pushButton_OK_clicked();
    void on_pushButton_Quit_clicked();
    void   GetUserInfo();
};

#endif // USERFORM_H
